home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / bin / mac / mac_sit.hqx / Mac Stuff / NNTP Server (SAMPLE CODE) / NNTP Server.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-30  |  1.4 KB  |  65 lines

  1. #define    NIL_POINTER            0L
  2. #define    REMOVE_ALL_EVENTS    0
  3. #define BASE_RES_ID            400
  4.  
  5. #define APPLE_MENU_ID        400
  6. #define FILE_MENU_ID        401
  7. #define EDIT_MENU_ID        402
  8.  
  9. #define ABOUT_ITEM            1
  10. #define    ABOUT_ALERT            400
  11. #define    ERROR_ALERT_ID        401
  12.  
  13. #define    NO_MBAR                BASE_RES_ID
  14. #define    NO_MENU                BASE_RES_ID+1
  15.  
  16. #define    RESET_ITEM            1
  17. #define    CLOSE_ITEM            2
  18. #define    QUIT_ITEM            3
  19.  
  20. #define UNDO_ITEM            1
  21. #define CUT_ITEM            3
  22. #define COPY_ITEM            4
  23. #define PASTE_ITEM            5
  24. #define CLEAR_ITEM            6
  25.  
  26. #define    NIL_STRING                "\p"
  27. #define    HOPELESSLY_FATAL_ERROR    "\pFatal Error...Exiting."
  28.  
  29. #define MAX_DRIVES            10
  30.  
  31. /* TCP constants */
  32.  
  33. #define LargeTCPFrame    (unsigned short)(4*1024)    /* Large TCP frame. */
  34. #define TCPBufSize        16384                        /* TCP Buffer Size. */
  35.  
  36. /* General constants */
  37.  
  38. #define CR                13        /* Carriage Return                    */
  39. #define LF                10        /* Line Feed                        */
  40. #define SPACE            32        /* Space                            */
  41. #define TAB                9        /* Tab                                */
  42. #define NIL                0L        /* NIL = 0                            */
  43. #define NUL                0        /* Null                                */
  44. #define    ioInProgress    1        /* I/O not complete yet                */
  45. #define MaxErrorString    100        /* Report's Maximum string size.    */
  46.  
  47. #define NNTP_SERVER        119        /* NNTP Server Port                     */
  48.  
  49.  
  50. #include "Quickdraw.h"
  51. #include <Events.h>
  52. #include <Devices.h>
  53. #include <MacTCPCommonTypes.h>
  54. #include <TCPPB.h>
  55.  
  56. typedef struct     WDS
  57. {
  58.     unsigned int        length1;
  59.     Ptr                    address1;
  60.     unsigned int        length2;
  61.     Ptr                    address2;
  62.     int                    term;
  63. } WDS;
  64.  
  65.